package com.ruoyi.client.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单VO
 */
@Data
public class OrderVo {

    @ApiModelProperty(value = "订单id", position = 1)
    private Long id;

    @ApiModelProperty(value = "订单编号", position = 2)
    private String orderNo;

    @ApiModelProperty(value = "用户id", position = 3)
    private Long userId;

    @ApiModelProperty(value = "收货地址ID", position = 4)
    private Long addressId;

    @ApiModelProperty(value = "总金额", position = 5)
    private BigDecimal amount;

    @ApiModelProperty(value = "订单状态(0-待支付,1-已支付,2-已发货,3-已完成,4-已取消)", position = 6)
    private Integer status;

    @ApiModelProperty(value = "备注", position = 7)
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", position = 8)
    private Date createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间", position = 9)
    private Date updatedAt;
}
